package com.wondream.myframework.design_pattern.singleton;

/**
 * 单例模式-饿汉
 */
public class Mgr01 {
//    private static final Mgr01 INSTANCE = new Mgr01();
    private static final Mgr01 INSTANCE;
    static {
        INSTANCE = new Mgr01();
    }

    private Mgr01(){}

    public static Mgr01 getInstance() {
        return INSTANCE;
    }
}
